package adminmodel

//定义模型
type Admin struct {
	ID 				uint 		`form:"id" json:"id" gorm:"primaryKey"`
	Username 		string 		`form:"username" json:"username" gorm:"common:'账号'" validate:"required" label:"用户名"`
	Password 		string 		`form:"password" json:"password" gorm:"comment:'密码'" validate:"omitempty,max=30,min=10" label:"密码"`
	Type 			int 		`form:"type" json:"type" gorm:"comment:'1为正常,2为禁用'" validate:"required,max=1" label:"状态值"`
	RoleId			int			`form:"role_id" json:"role_id" gorm:"comment:'角色id'" validate:"required" label:"用户角色"`
	Has 			string 		`json:"has" gorm:"comment:'加盐'"`
	CreateTime 		int64 		`json:"create_time" gorm:"autoCreateTime"`
	UpdateTime 		int64		`json:"update_time" gorm:"autoUpdateTime"`
}


